let myVue1 = new Vue({
    el:"#main",
    data:{
        account:{
            accountId:''
        }
    },
    methods:{
        selectOne: function () {
            axios({
                url:`account/selectOne/${this.account.accountId}`
            }).then(response => {
                console.log(response.data.obj)
                this.account = response.data.obj;
            })
        },
        closeDetail:function () {
            let index = parent.layer.getFrameIndex(window.name);//获取窗口索引
            parent.layer.close(index);
        }
    },
    created:function () {
        //parent: 自动传入的父窗口对象-index
        this.account.accountId = parent.layer.obj;
        this.selectOne();
    }
});